			
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using DDF.Entity;
using System.Runtime.Serialization;
using ARR.Entities.Gateways;
		
namespace ARR.Entities
{
	[DataContract]
	[Serializable]	
	public partial class Category : EntityBase
	{
		[DataMember]
		private CategoryRow row;
		
		public Category(CategoryRow row)
		{
			this.row = row;
		}
		
		public Category()
		{
			this.row = new CategoryRow();
		}
		
		[DataMember]
		public int Id
		{
			get { return row.Id; }
			set { row.Id = value; }
		}

		[DataMember]
		public int? ParentId
		{
			get { return row.ParentId; }
			set { row.ParentId = value; }
		}

		[DataMember]
		public string Code
		{
			get { return row.Code; }
			set { row.Code = value; }
		}

		[DataMember]
		public string Name
		{
			get { return row.Name; }
			set { row.Name = value; }
		}

		[DataMember]
		public int Level
		{
			get { return row.Level; }
			set { row.Level = value; }
		}

		[DataMember]
		public string Convention
		{
			get { return row.Convention; }
			set { row.Convention = value; }
		}

		[DataMember]
		public int? CategoryUniverseId
		{
			get { return row.CategoryUniverseId; }
			set { row.CategoryUniverseId = value; }
		}

		[DataMember]
		public int? CategoryRoleId
		{
			get { return row.CategoryRoleId; }
			set { row.CategoryRoleId = value; }
		}

		
		public CategoryRow GetRow()
        {
            return row;
        }
		
	} 
} 
